package it.koutifaris.travianmap.mapsqlparser;

import java.io.InputStream;
import java.util.Date;

public interface MapSqlParser {

	public void parse(RemoteSource remoteSource, MapSqlEntryHandler handler) throws SqlParserException;

	public void parse(RemoteSource remoteSource, MapSqlEntryHandler handler, ProgressHandler progressHandler) throws SqlParserException;

	interface RemoteSource {

		InputStream sourceStream(StreamWrapper streamWrapper);

		Date lastModified();

		interface StreamWrapper {

			InputStream wrap(InputStream inputStream);

		}
	}
}
